/**
 * @project_name staff_vehicle
 * @package_name com.ssh.ser.admin
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-28
 * @time 上午10:00:38
 */
package com.ssh.ser.admin;

import java.sql.Timestamp;
import java.util.List;

import com.ssh.dao.VisitorTableDAOI;
import com.ssh.entity.VisitorTable;
import com.ssh.model.pdata.VVisitInfoPData;

/**
 * @author jack
 *
 */
public class VisitorManageSerImpl implements VisitorManageSerI {
	VisitorTableDAOI visitorTableDAOI ;

	/* (non-Javadoc)
	 * @see com.ssh.ser.admin.VisitorManageSerI#viewAllVisitor()
	 */
	@Override
	public List<VisitorTable> viewAllVisitor() {
		// TODO Auto-generated method stub
		return visitorTableDAOI.getAll();
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.admin.VisitorManageSerI#addNewVisitor()
	 */
	@Override
	public VisitorTable addNewVisitor() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * @return the visitorTableDAOI
	 */
	public VisitorTableDAOI getVisitorTableDAOI() {
		return visitorTableDAOI;
	}

	/**
	 * @param visitorTableDAOI the visitorTableDAOI to set
	 */
	public void setVisitorTableDAOI(VisitorTableDAOI visitorTableDAOI) {
		this.visitorTableDAOI = visitorTableDAOI;
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.admin.VisitorManageSerI#viewVisitor(com.ssh.entity.VisitorTable)
	 */
	@Override
	public List<VisitorTable> viewVisitor(VisitorTable visitorTable) {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.admin.VisitorManageSerI#viewAllVVisit()
	 */
	@Override
	public List<VVisitInfoPData> viewAllVVisitInfo() {
		// TODO Auto-generated method stub
		return visitorTableDAOI.getAllVVisitorInfo();
	}

    /**按进入时间查询来访人员*/
	@Override
	public List<VVisitInfoPData> viewVVisitByInTime(Timestamp inTime) {
		// TODO Auto-generated method stub
		return visitorTableDAOI.getVVisitorByInTime(inTime);
	}
	/**按离开时间查询来访人员*/
	@Override
	public List<VVisitInfoPData> viewVVisitByOffTime(Timestamp offTime) {
		// TODO Auto-generated method stub
		return visitorTableDAOI.getVVisitorByOffTime(offTime);
	}
}
